// User 仓库
import { defineStore } from "pinia";
import type { LoginForm } from "@/types/user";
import { userLoginApi } from "@/api/user";
import type { Result } from "@/types/common";
const useUserStore = defineStore("User", {
  state: () => {
    return {};
  },
  getters: {},
  actions: {
    async userLogin(loginForm: LoginForm): Promise<Result> {
      return await userLoginApi(loginForm);
    },
    async getUserInfo(): Promise<Result> {},
  },
});

export default useUserStore;
